home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwsesi.dir / 00207_Script_207 < prev    next >
Text File  |  1994-11-15  |  24KB  |  734 lines

  1. on startMovie
  2.   global nowFrame, lastMovie
  3.   global lastRoll,lastCast
  4.   
  5.   set lastMovie = "FLWSESI"
  6.   
  7.   set lastRoll = 0
  8.   set lastCast = 0
  9.   setPuppet TRUE
  10.   gSetPuppet
  11.   set the stretch of sprite 23 to FALSE
  12. end startMovie
  13.  
  14. on stepMovie
  15.   global nowFrame,currFrame
  16.   if nowFrame <> currFrame then
  17.     seeAlsoList
  18.     set currFrame = nowFrame
  19.   end if
  20. end stepMovie
  21.  
  22. on stopMovie
  23.   put " " into field "SeeAlsoText"
  24.   set the castNum of sprite 21 to 1050
  25.   puppetSprite 21, FALSE
  26.   updateStage
  27. end stopMovie
  28.  
  29. on saveLocals
  30.   global lastFrame,nowFrame
  31.   set lastFrame = nowFrame 
  32. end saveLocals
  33.  
  34. on seForStep
  35.   global nowFrame
  36.   put the castNum of sprite 9 into cName
  37.   if chars(nowFrame,12,12) = "l" or nowFrame = "sesitmou005°°°" then 
  38.     gUnPuppet
  39.     go to frame "sepatint000°°°" of movie "FLWSEPA"
  40.   else if chars(nowFrame,6,8) = "int" then
  41.     gUnPuppet
  42.     puppetTransition 2,0,128
  43.     go to marker(+1)
  44.   else if cName = A28 then
  45.     puppetTransition 2,0,128
  46.     go to marker(+2) 
  47.   else
  48.     puppetSprite 2, FALSE
  49.     puppetTransition 2,0,128
  50.     go to marker(+1)
  51.   end if
  52.   unloadCast 176,206
  53. end seForStep
  54.  
  55. on seBackStep
  56.   global nowFrame,jmpStep 
  57.   put the castNum of sprite 9 into cName
  58.   if chars(nowFrame,11,11) = "1" then
  59.     resetHit
  60.     updateStage
  61.   end if
  62.   if chars(nowFrame,6,8) = "int" then
  63.     go to "sephitru003l°°" of movie "FLWSEPH"
  64.   else
  65.     puppetTransition 1,0,128
  66.     go to marker(jmpStep)
  67.   end if
  68.   unloadCast 176,206
  69. end seBackStep
  70.  
  71. on gSetPuppet
  72.   repeat with i = 21 to 23
  73.     puppetSprite i, TRUE
  74.     set the immediate of sprite i to TRUE
  75.   end repeat
  76. end gSetPuppet
  77.  
  78. on mainRtn
  79.   global swapSpnum,rollFlag, dialogOn
  80.   if dialogOn = FALSE then
  81.     set rollFlag = FALSE
  82.     if rollOver(9) then
  83.       puppetSprite 9,TRUE
  84.       set the foreColor of sprite 9 to 230
  85.     else
  86.       set the foreColor of sprite 9 to 255  
  87.       puppetSprite 9,FALSE
  88.     end if
  89.     
  90.     menuRollOver()
  91.     if rollFlag = TRUE then
  92.       when  mouseDown then  isPress(swapSpnum)
  93.     else
  94.       when mouseDown then nothing
  95.     end if
  96.     --if the mouseH >= 340 and the mouseV > 450 then
  97.     buttonState
  98.     --end if
  99.   end if
  100. end mainRtn
  101.  
  102. on buttonState
  103.   global thumbTrack, thumbFrame, bflag, FrankNav, adjPerOn, noTx, dialogOn
  104.   
  105.   
  106.   if dialogOn = FALSE then
  107.     
  108.     --periodRoll
  109.     --periodCheck
  110.     
  111.     -- don't check global buttons unless mouse is down at bottom
  112.     if (the mouseV > 200) or (bFlag = TRUE) then
  113.       set bFlag = FALSE
  114.       doState
  115.     end if
  116.   else if dialogOn = TRUE then
  117.     if the mouseDown then 
  118.       if the mouseCast <> the number of cast "glossDialog" then
  119.         beep
  120.       end if
  121.     end if
  122.   end if
  123.   --if bflag = FALSE then set the castNum of sprite 23 to noTx
  124. end buttonState
  125.  
  126. on isrollPhil 
  127.   global phiint,org, tec, dem, uni, bal, ref, lig, tru
  128.   global nowroll
  129.   if (the mouseH >= item 1 of phiint and the mouseH <= item 2 of phiint)¼
  130.       and (the mouseV >= item 3 of phiint and the mouseV <= item 4 of phiint) then
  131.     set nowroll = "phiint"
  132.   else if (the mouseH >= item 1 of org and the mouseH <= item 2 of org)¼
  133.       and (the mouseV >= item 3 of org and the mouseV <= item 4 of org) then
  134.     set nowroll = "org"
  135.   else if (the mouseH >= item 1 of tec and the mouseH <= item 2 of tec)¼
  136.        and (the mouseV >= item 3 of tec and the mouseV <= item 4 of tec) then
  137.     set nowroll = "tec"
  138.   else if (the mouseH >= item 1 of dem and the mouseH <= item 2 of dem)¼
  139.        and (the mouseV >= item 3 of dem and the mouseV <= item 4 of dem) then
  140.     set nowroll = "dem"
  141.   else if (the mouseH >= item 1 of uni and the mouseH <= item 2 of uni)¼
  142.      and (the mouseV >= item 3 of uni and the mouseV <= item 4 of uni) then
  143.     set nowroll = "uni"
  144.   else if (the mouseH >= item 1 of bal and the mouseH <= item 2 of bal)¼
  145.      and (the mouseV >= item 3 of bal and the mouseV <= item 4 of bal) then
  146.     set nowroll = "bal"
  147.   else if  (the mouseH >= item 1 of ref and the mouseH <= item 2 of ref)¼
  148.      and ( the mouseV >= item 3 of ref and the mouseV <= item 4 of ref) then
  149.     set nowroll = "ref"
  150.   else if (the mouseH >= item 1 of lig and the mouseH <= item 2 of lig)¼
  151.      and (the mouseV >= item 3 of lig and the mouseV <= item 4 of lig) then
  152.     set nowroll = "lig"
  153.   else if (the mouseH >= item 1 of tru and the mouseH <= item 2 of tru)¼
  154.     and (the mouseV >= item 3 of tru and  the mouseV <= item 4 of tru) then
  155.     set nowroll = "tru"
  156.   else
  157.     set nowroll = ""
  158.   end if
  159.   updateStage
  160.   return nowroll
  161. end isrollPhil
  162.  
  163. on isrollSite 
  164.   global sitint,fla,hil, mou
  165.   global nowroll
  166.   if (the mouseH >= item 1 of sitint and the mouseH <= item 2 of sitint)¼
  167.       and (the mouseV >= item 3 of sitint and the mouseV <= item 4 of sitint) then
  168.     set nowroll = "sitint"
  169.   else if (the mouseH >= item 1 of fla and the mouseH <= item 2 of fla)¼
  170.       and (the mouseV >= item 3 of fla and the mouseV <= item 4 of fla) then
  171.     set nowroll = "fla"
  172.   else if (the mouseH >= item 1 of hil and the mouseH <= item 2 of hil)¼
  173.        and (the mouseV >= item 3 of hil and the mouseV <= item 4 of hil) then
  174.     set nowroll = "hil"
  175.   else if (the mouseH >= item 1 of mou and the mouseH <= item 2 of mou)¼
  176.        and (the mouseV >= item 3 of mou and the mouseV <= item 4 of mou) then
  177.     set nowroll = "mou"
  178.   else
  179.     set nowroll = "" 
  180.   end if
  181.   return nowroll
  182. end isrollSite
  183.  
  184. on isrollPatt 
  185.   global patint,geo, col,sou,mus,cul,nat
  186.   global nowroll
  187.   if (the mouseH >= item 1 of patint and the mouseH <= item 2 of patint)¼
  188.       and (the mouseV >= item 3 of patint and the mouseV <= item 4 of patint) then
  189.     set nowroll = "patint"
  190.   else if (the mouseH >= item 1 of geo and the mouseH <= item 2 of geo)¼
  191.       and (the mouseV >= item 3 of geo and the mouseV <= item 4 of geo) then
  192.     set nowroll = "geo"
  193.   else if (the mouseH >= item 1 of col and the mouseH <= item 2 of col)¼
  194.        and (the mouseV >= item 3 of col and the mouseV <= item 4 of col) then
  195.     set nowroll = "col"
  196.   else if (the mouseH >= item 1 of sou and the mouseH <= item 2 of sou)¼
  197.        and (the mouseV >= item 3 of sou and the mouseV <= item 4 of sou) then
  198.     set nowroll = "sou"
  199.   else if (the mouseH >= item 1 of mus and the mouseH <= item 2 of mus)¼
  200.      and (the mouseV >= item 3 of mus and the mouseV <= item 4 of mus) then
  201.     set nowroll = "mus"
  202.   else if (the mouseH >= item 1 of cul and the mouseH <= item 2 of cul)¼
  203.      and (the mouseV >= item 3 of cul and the mouseV <= item 4 of cul) then
  204.     set nowroll = "cul"
  205.   else if (the mouseH >= item 1 of nat and the mouseH <= item 2 of nat)¼
  206.      and (the mouseV >= item 3 of nat and the mouseV <= item 4 of nat) then
  207.     set nowroll = "nat"
  208.   else
  209.     set nowroll = ""   
  210.   end if
  211.   return nowroll
  212. end isrollPatt
  213.  
  214. on isrollMate
  215.   global matint,woo,sto,gla, bri,cop,con,rei
  216.   global nowroll
  217.   if (the mouseH >= item 1 of matint and the mouseH <= item 2 of matint)¼
  218.       and (the mouseV >= item 3 of matint and the mouseV <= item 4 of matint) then
  219.     set nowroll = "matint"
  220.   else if (the mouseH >= item 1 of woo and the mouseH <= item 2 of woo)¼
  221.       and (the mouseV >= item 3 of woo and the mouseV <= item 4 of woo) then
  222.     set nowroll = "woo"
  223.   else if (the mouseH >= item 1 of sto and the mouseH <= item 2 of sto)¼
  224.        and (the mouseV >= item 3 of sto and the mouseV <= item 4 of sto) then
  225.     set nowroll = "sto"
  226.   else if (the mouseH >= item 1 of gla and the mouseH <= item 2 of gla)¼
  227.        and (the mouseV >= item 3 of gla and the mouseV <= item 4 of gla) then
  228.     set nowroll = "gla"
  229.   else if (the mouseH >= item 1 of bri and the mouseH <= item 2 of bri)¼
  230.      and (the mouseV >= item 3 of bri and the mouseV <= item 4 of bri) then
  231.     set nowroll = "bri"
  232.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of cop)¼
  233.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of cop) then
  234.     set nowroll = "cop"
  235.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of con)¼
  236.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of con) then
  237.     set nowroll = "con"
  238.   else if (the mouseH >= item 1 of rei and the mouseH <= item 2 of rei)¼
  239.      and (the mouseV >= item 3 of rei and the mouseV <= item 4 of rei) then
  240.     set nowroll = "rei"
  241.   else
  242.     set nowroll = ""   
  243.   end if
  244.   return nowroll
  245. end isrollMate
  246.  
  247. on isrollType 
  248.   global typint,atr, hea, tow
  249.   global nowroll
  250.   if (the mouseH >= item 1 of typint and the mouseH <= item 2 of typint)¼
  251.       and (the mouseV >= item 3 of typint and the mouseV <= item 4 of typint) then
  252.     set nowroll = "typint"
  253.   else if (the mouseH >= item 1 of atr and the mouseH <= item 2 of atr)¼
  254.       and (the mouseV >= item 3 of atr and the mouseV <= item 4 of atr) then
  255.     set nowroll = "atr"
  256.   else if (the mouseH >= item 1 of hea and the mouseH <= item 2 of hea)¼
  257.        and (the mouseV >= item 3 of hea and the mouseV <= item 4 of hea) then
  258.     set nowroll = "hea"
  259.   else if (the mouseH >= item 1 of tow and the mouseH <= item 2 of tow)¼
  260.        and (the mouseV >= item 3 of tow and the mouseV <= item 4 of tow) then
  261.     set nowroll = "tow"
  262.   else
  263.     set nowroll = ""   
  264.   end if
  265.   return nowroll
  266. end isrollType
  267.  
  268. on locCheck spriteNum
  269.   global nowroll
  270.   if the mouseH >= 22 and the mouseH <= (22 + 97) then
  271.     set nowroll = isrollPhil()
  272.     isrollPhil()
  273.     philroll(nowroll,3)
  274.   else if the mouseH >= 142 and the mouseH <= (142 + 87) then
  275.     set nowroll = isrollSite()
  276.     siteroll(nowroll,3)
  277.   else if the mouseH >= 268 and the mouseH <= (268 + 94) then
  278.     set nowroll = isrollPatt()
  279.     pattroll(nowroll,3)
  280.   else if the mouseH >= 392 and the mouseH <= (392 + 92) then
  281.     set nowroll = isrollMate()
  282.     materoll(nowroll,3)
  283.   else if the mouseH >= 521 and the mouseH <= (521 + 70) then
  284.     set nowroll = isrollType()
  285.     typeroll(nowroll,3)
  286.   end if
  287. end locCheck
  288.  
  289. on philroll nowroll,spriteNum
  290.   global flashtimer,phiint
  291.   set flashtimer = FALSE
  292.   set cName = A88
  293.   set resetCname = A51
  294.   if nowroll = "phiint" then
  295.     set the castNum of sprite spriteNum to cName
  296.   else if nowroll = "org" then
  297.     set the castNum of sprite spriteNum to cName + 1
  298.   else if nowroll = "tec" then
  299.     set the castNum of sprite spriteNum to cName + 2
  300.   else if nowroll = "dem" then
  301.     set the castNum of sprite spriteNum to cName + 3
  302.   else if nowroll = "uni" then
  303.     set the castNum of sprite spriteNum to cName + 4
  304.   else if nowroll = "bal" then
  305.     set the castNum of sprite spriteNum to cName + 5
  306.   else if nowroll = "ref" then
  307.     set the castNum of sprite spriteNum to cName + 6
  308.   else if nowroll = "lig" then
  309.     set the castNum of sprite spriteNum to cName + 7
  310.   else if nowroll = "tru" then
  311.     set the castNum of sprite spriteNum to cName + 8
  312.   else
  313.     set the castNum of sprite spriteNum to resetCname
  314.     set flashtimer = TRUE 
  315.   end if
  316.   updateStage
  317.   
  318. end philroll
  319.  
  320. on siteroll nowroll,spriteNum
  321.   global flashtimer,sitint
  322.   set flashtimer = FALSE
  323.   set cName = B21
  324.   set resetCname = A51
  325.   if nowroll = "sitint" then
  326.     set the castNum of sprite spriteNum to cName
  327.   else if nowroll = "fla" then
  328.     set the castNum of sprite spriteNum to cName + 1
  329.   else if nowroll = "hil" then
  330.     set the castNum of sprite spriteNum to cName + 2
  331.   else if nowroll = "mou" then
  332.     set the castNum of sprite spriteNum to cName + 3
  333.   else
  334.     set the castNum of sprite spriteNum to resetCname
  335.     set flashtimer = TRUE
  336.   end if
  337.   updateStage
  338. end siteroll
  339.  
  340. on pattroll nowroll,spriteNum
  341.   global flashtimer,patint
  342.   set flashtimer = FALSE
  343.   set cName = B25
  344.   set resetCname = A51
  345.   if nowroll = "patint" then
  346.     set the castNum of sprite spriteNum to cName
  347.   else if nowroll = "geo" then
  348.     set the castNum of sprite spriteNum to cName + 1
  349.   else if nowroll = "col" then
  350.     set the castNum of sprite spriteNum to cName + 2
  351.   else if nowroll = "sou" then
  352.     set the castNum of sprite spriteNum to cName + 7
  353.   else if nowroll = "mus" then
  354.     set the castNum of sprite spriteNum to cName + 4
  355.   else if nowroll = "cul" then
  356.     set the castNum of sprite spriteNum to cName + 5
  357.   else if nowroll = "nat" then
  358.     set the castNum of sprite spriteNum to cName + 6
  359.   else
  360.     set the castNum of sprite spriteNum to resetCname
  361.     set flashtimer = TRUE
  362.   end if
  363. end pattroll
  364.  
  365. on materoll nowroll,spriteNum
  366.   global flashtimer,matint
  367.   set flashtimer = FALSE
  368.   set cName = B35
  369.   set resetCname = A51
  370.   if nowroll = "matint" then
  371.     set the castNum of sprite spriteNum to cName
  372.   else if nowroll = "woo" then
  373.     set the castNum of sprite spriteNum to cName + 1
  374.   else if nowroll = "sto" then
  375.     set the castNum of sprite spriteNum to cName + 2
  376.   else if nowroll = "gla" then
  377.     set the castNum of sprite spriteNum to cName + 3
  378.   else if nowroll = "bri" then
  379.     set the castNum of sprite spriteNum to cName + 4
  380.   else if nowroll = "cop" then
  381.     set the castNum of sprite spriteNum to cName + 5
  382.   else if nowroll = "con" then
  383.     set the castNum of sprite spriteNum to cName + 6
  384.   else if nowroll = "rei" then
  385.     set the castNum of sprite spriteNum to cName + 7
  386.   else
  387.     set the castNum of sprite spriteNum to resetCname
  388.     set flashtimer = TRUE
  389.   end if
  390.   updateStage
  391. end materoll
  392.  
  393. on typeroll nowroll,spriteNum
  394.   global flashtimer,typint
  395.   set flashtimer = FALSE
  396.   set cName = B45
  397.   set resetCname = A51
  398.   if nowroll = "typint" then
  399.     set the castNum of sprite spriteNum to cName
  400.   else if nowroll = "atr" then
  401.     set the castNum of sprite spriteNum to cName + 1
  402.   else if nowroll = "hea" then
  403.     set the castNum of sprite spriteNum to cName + 2
  404.   else if nowroll = "tow" then
  405.     set the castNum of sprite spriteNum to cName + 3
  406.   else
  407.     set the castNum of sprite spriteNum to resetCname
  408.     set flashtimer = TRUE
  409.   end if
  410.   updateStage
  411. end typeroll
  412.  
  413. on isPress spriteNum 
  414.   global nowFrame,rollFlag, nextMov, lastMovie
  415.   set restate  = A51
  416.   set buttonSucess = FALSE
  417.   set resetCastNo = A31
  418.   set nowPress = isrollPhil()
  419.   if nowPress = "phiint"  then
  420.     set buttonSucess = TRUE
  421.     put nowPress into clickasset
  422.     set nextMov = "FLWSEPH"
  423.   end if
  424.   if nowPress <> ""  and nowPress <> "phiint" then 
  425.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  426.     set resetSprite = 10
  427.     set resetCast = resetCastNo
  428.     put "phi" & nowPress  into clickasset
  429.     set nextMov = "FLWSEPH"
  430.     set buttonSucess = TRUE
  431.     
  432.     repeat while the stillDown
  433.       if isrollPhil() = nowPress then
  434.         put "phi" into secName
  435.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  436.         set resetSprite = 10
  437.         set resetCast = resetCastNo
  438.         put "phi" & nowPress  into clickasset
  439.         set buttonSucess = TRUE
  440.       else if isrollPhil() <> nowPress   then
  441.         set the ink of sprite spriteNum to 8
  442.         set the castNum of sprite spriteNum to  restate
  443.         set buttonSucess = FALSE
  444.       end if
  445.       updateStage
  446.     end repeat
  447.   end if
  448.   
  449.   set nowPress = isrollSite()
  450.   if nowPress = "sitint" then
  451.     set buttonSucess = TRUE
  452.     put nowPress into clickasset
  453.     set nextMov = "FLWSESI"
  454.   end if
  455.   if nowPress  <> "" and nowPress <> "sitint" then
  456.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  457.     set resetSprite = 11
  458.     set resetCast = resetCastNo + 1
  459.     put "sit" & nowPress  into clickasset
  460.     set nextMov = "FLWSESI"
  461.     set buttonSucess = TRUE
  462.     updateStage
  463.     repeat while the stillDown
  464.       if isrollSite() = nowPress then
  465.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  466.         set resetSprite = 11
  467.         set resetCast = resetCastNo + 1
  468.         put "sit" & nowPress  into clickasset
  469.         set buttonSucess = TRUE
  470.       else if isrollSite() <> nowPress  then
  471.         set the ink of sprite spriteNum to 8
  472.         set the castNum of sprite spriteNum to  restate
  473.         set buttonSucess = FALSE
  474.       end if
  475.       updateStage
  476.     end repeat
  477.   end if
  478.   
  479.   set nowPress = isrollPatt()
  480.   if nowPress = "patint"  then
  481.     set buttonSucess = TRUE
  482.     put nowPress into clickasset
  483.     set nextMov = "FLWSEPA"
  484.   end if
  485.   if nowPress  <> "" and nowPress <> "patint" then
  486.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  487.     set resetSprite = 12
  488.     set resetCast = resetCastNo + 2
  489.     put "pat" & nowPress  into clickasset
  490.     set nextMov = "FLWSEPA"
  491.     --    if nowPress = "sou" then
  492.     --      set buttonSucess to FALSE
  493.     --    else
  494.     set buttonSucess = TRUE
  495.     --    end if
  496.     updateStage
  497.     repeat while the stillDown
  498.       if isrollPatt() = nowPress then
  499.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  500.         set resetSprite = 12
  501.         set resetCast = resetCastNo + 2
  502.         put "pat" & nowPress  into clickasset
  503.         set buttonSucess = TRUE
  504.         --        if nowPress = "sou" then
  505.         --          set buttonSucess to FALSE
  506.         --        end if
  507.       else if isrollPatt() <> nowPress then
  508.         set the ink of sprite spriteNum to 8
  509.         set the castNum of sprite spriteNum to  restate
  510.         set buttonSucess = FALSE
  511.       end if
  512.       updateStage
  513.     end repeat
  514.   end if
  515.   
  516.   set nowPress = isrollMate()
  517.   if nowPress = "matint"  then
  518.     set buttonSucess = TRUE
  519.     put nowPress into clickasset
  520.     set nextMov = "FLWSEMA"
  521.   end if
  522.   if nowPress <> "" and nowPress <> "matint" then
  523.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  524.     set resetSprite = 13
  525.     set resetCast = resetCastNo + 3
  526.     put "mat" & nowPress  into clickasset
  527.     set nextMov = "FLWSEMA"
  528.     set buttonSucess = TRUE
  529.     updateStage
  530.     repeat while the stillDown
  531.       if isrollMate() = nowPress then
  532.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  533.         set resetSprite = 13
  534.         set resetCast = resetCastNo + 3
  535.         put "mat" & nowPress  into clickasset
  536.         set buttonSucess = TRUE
  537.       else if isrollMate() <> nowPress  then
  538.         set the ink of sprite spriteNum to 8
  539.         set the castNum of sprite spriteNum to  restate
  540.         set buttonSucess = FALSE
  541.       end if
  542.       updateStage
  543.     end repeat
  544.   end if
  545.   
  546.   set nowPress = isrollType()
  547.   if nowPress = "typint" then
  548.     set buttonSucess = TRUE
  549.     put nowPress into clickasset
  550.     set nextMov = "FLWSETY"
  551.   end if
  552.   if nowPress  <> "" and nowPress <> "typint" then
  553.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  554.     set resetSprite = 14
  555.     set resetCast = resetCastNo + 4
  556.     put "typ" & nowPress  into clickasset
  557.     set nextMov = "FLWSETY"
  558.     set buttonSucess = TRUE
  559.     updateStage
  560.     repeat while the stillDown
  561.       if isrollType() = nowPress then
  562.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  563.         set resetSprite = 14
  564.         set resetCast = resetCastNo + 4
  565.         put "typ" & nowPress  into clickasset
  566.         set buttonSucess = TRUE
  567.       else if isrollType() <> nowPress  then
  568.         set the ink of sprite spriteNum to 8
  569.         set the castNum of sprite spriteNum to  restate
  570.         set buttonSucess = FALSE
  571.       end if
  572.       updateStage
  573.     end repeat
  574.   end if
  575.   
  576.   if buttonSucess = TRUE then
  577.     set the ink of sprite spriteNum to 8
  578.     if spriteNum = 3 then
  579.       set the castNum of sprite spriteNum to restate
  580.       updateStage
  581.       puppetSprite spriteNum, FALSE
  582.     else
  583.       put the timer + 10 into time
  584.       set the castNum of sprite spriteNum to restate
  585.       updateStage
  586.       repeat while the timer < time
  587.       end repeat
  588.       -- put the timer + 10 into time
  589.       -- repeat while the timer  < time
  590.       -- end repeat
  591.       --set the castNum of sprite resetSprite to resetCast
  592.       -- updateStage
  593.       -- put the timer + 10 into time
  594.       -- repeat while the timer  < time
  595.       -- end repeat
  596.       puppetSprite spriteNum,FALSE
  597.     end if
  598.     
  599.     if clickasset = "patsou" then
  600.       set clickasset = "patmus"
  601.     end if
  602.     
  603.     put "se" & clickasset & "000°°°" into jmpFrame
  604.     if chars(nowFrame,3,5) <> "mai" then resetHit
  605.     set rollFlag = FALSE
  606.     set the ink of sprite spriteNum to 8
  607.     puppetSprite 2, FALSE
  608.     puppetSprite 4, FALSE
  609.     puppetSprite 5, FALSE
  610.     
  611.     if chars(clickasset,1,2)=chars(lastMovie,6,7) then
  612.       go to frame jmpFrame
  613.       flush
  614.     else
  615.       go to frame jmpFrame of movie nextMov
  616.       flush
  617.     end if
  618.   end if
  619. end isPress
  620.  
  621. on setPuppet state
  622.   repeat with i = 10 to 15
  623.     puppetSprite i, state
  624.     set the immediate of sprite i to state
  625.   end repeat
  626. end setPuppet
  627.  
  628. on menuRollOver 
  629.   global lastRoll,lastCast,nowFrame,rollFlag
  630.   set resetState = A51
  631.   set cName = A41
  632.   set lCname = A22
  633.   set currHit = A31
  634.   put chars(nowFrame,3,5) into currSec
  635.   
  636.   set rollFlag = FALSE
  637.   
  638.   if currSec = "phi" then
  639.     set the castNum of sprite 10 to currHit
  640.   else if currSec = "sit" then
  641.     set the castNum of sprite 11 to currHit + 1
  642.   else if currSec = "pat" then
  643.     set the castNum of sprite 12 to currHit + 2
  644.   else if currSec = "mat" then
  645.     set the castNum of sprite 13 to currHit + 3
  646.   else if currSec = "typ" then
  647.     set the castNum of sprite 14 to currHit + 4
  648.   end if
  649.   
  650.   if rollOver(10) then
  651.     set rollFlag = TRUE
  652.     if lastRoll <> 0 and lastRoll <> 10  then
  653.       set the castNum of sprite lastRoll to lastCast
  654.     end if
  655.     set the castNum of  sprite 10 to cName
  656.     set lastRoll = 10
  657.     set lastCast = lCname
  658.     set nowroll = isrollPhil()
  659.     philroll(nowroll,15)
  660.   else if rollOver(11) then
  661.     set rollFlag = TRUE
  662.     if lastRoll <> 0 and lastRoll <> 11  then
  663.       set the castNum of sprite lastRoll to lastCast
  664.     end if
  665.     set the castNum of  sprite 11 to cName + 1
  666.     set lastRoll = 11
  667.     set lastCast = lCname + 1
  668.     set nowroll = isrollSite()
  669.     siteroll(nowroll,15)
  670.   else if rollOver(12) then
  671.     set rollFlag = TRUE
  672.     if lastRoll <> 0 and lastRoll <> 12 then
  673.       set the castNum of sprite lastRoll to  lastCast
  674.     end if
  675.     set the castNum of  sprite 12 to cName + 2
  676.     set lastRoll = 12
  677.     set lastCast = lCname + 2
  678.     set nowroll = isrollPatt()
  679.     pattroll(nowroll,15)
  680.   else if rollOver(13) then
  681.     set rollFlag = TRUE
  682.     if lastRoll <> 0 and lastRoll <> 13 then
  683.       set the castNum of sprite lastRoll to  lastCast
  684.     end if
  685.     set the castNum of  sprite 13 to cName + 3
  686.     set lastRoll = 13 
  687.     set lastCast = lCname + 3
  688.     set nowroll = isrollMate()
  689.     materoll(nowroll,15)
  690.   else if rollOver(14) then
  691.     set rollFlag = TRUE
  692.     if lastRoll <> 0 and lastRoll <> 14 then
  693.       set the castNum of sprite lastRoll to  lastCast
  694.     end if
  695.     set the castNum of sprite 14 to cName + 4 
  696.     set lastRoll = 14
  697.     set lastCast = lCname + 4
  698.     set nowroll = isrollType()
  699.     Typeroll(nowroll,15)
  700.   else 
  701.     set rollFlag = FALSE 
  702.     set the castNum of sprite lastRoll to lastCast
  703.     set the castNum of sprite 15 to  resetState
  704.     if currSec = "phi" then
  705.       set the castNum of sprite 10 to currHit
  706.     else if currSec = "sit" then
  707.       set the castNum of sprite 11 to currHit + 1
  708.     else if currSec = "pat" then
  709.       set the castNum of sprite 12 to currHit + 2
  710.     else if currSec = "mat" then
  711.       set the castNum of sprite 13 to currHit + 3
  712.     else if currSec = "typ" then
  713.       set the castNum of sprite 14 to currHit + 4
  714.     end if 
  715.   end if
  716.   updateStage
  717.   return rollFlag
  718. end menuRollOver
  719.  
  720. on resetHit
  721.   set hitSp = A22
  722.   repeat with i = 0 to 4 
  723.     set the castNum of sprite (i+10) to (hitSp + i)
  724.     updateStage
  725.   end repeat
  726. end resetHit
  727.  
  728. on gUnPuppet
  729.   setPuppet FALSE  
  730. end gUnpuppet
  731.  
  732.  
  733.  
  734.